{if $logued eq 1}
<div id="menu">
	<div class="minimize" onclick="minimize('user_menu_window')" title="{$lang.minimize}"></div>
	<span class="menu_title">{$lang.usermenu}</span>
	<div style="margin-top: 20px;">
	<div id="user_menu_window">
	<table class="menu_window">
		<tbody>
			<tr>
				<td class="menu_nw menu_window_td"></td>
				<td class="menu_n menu_window_td"></td>
				<td class="menu_ne menu_window_td"></td>
			</tr>
		</tbody>
	</table>
	<table class="menu_window menu_window_content">
		<tbody>
			<tr>
				<td class="menu_w menu_window_td"></td>
				<td class="menu_content menu_window_td">
					<div class="menu_content">
						{eval var=$CURRENT_USER->groupid assign="crgrp"}
						<table cellpadding="0" cellspacing="0">
							<br/>
							<b>
							<center>{$lang.welcome} {$CURRENT_USER->userid}</b>
							<br>[{$lang.$crgrp}]
							</center>
							<br/>						
							{if $CURRENT_USER->groupid neq 'ADMIN' }
							<tr>
								<td class="img_menu"><img src="images/arrow27.png" width="24" height="24"></td>
								<td>
									<form method="post" id="quickaction">
										<input type="hidden" name="action" value="list">
										{$lang.browse}&nbsp;
										<select name="projectid" id="projectid" class="txt" onchange="browseTo(xajax.getFormValues('quickaction')); this.selectedIndex=0;">
											<option value="">-</option>
											{foreach from=$projectlist item=prj}
												{eval var=$prj->id assign="prid"}
												<option value="{$prj->id}">{$prj->name}</option>
											{/foreach}
										</select>
									</form>
								</td>
							</tr>										
							{/if}
							{foreach from=$CREDENTIALS[$crgrp] item=cr}
								{if $cr eq 'home'}	
									<tr>
										<td class="img_menu"><img src="images/option.gif" width="24" height="24"></td>
										<td><span class="link" onclick="actMenu('prselection')" title="{$lang.browse}">{$lang.home}</span></td>
									</tr>	
								{/if}
								{if $cr eq 'glossary'}	
									<tr>
										<td class="img_menu"><img src="images/glossary.gif" width="24" height="24"></td>
										<td><span class="link" onclick="actMenu('glossary')" title="{$lang.glossary}">{$lang.glossary}</span></td>
									</tr>
								{/if}								
								{if $crgrp neq 'ADMIN' AND $crgrp neq 'COORD'} 
									{if $cr eq 'taskadmin'}	
									<tr>
										<td class="img_menu"><img src="images/option.gif" width="24" height="24"></td>
										<td><span class="link" onclick="actMenu('taskadmin')" title="{$lang.taskadmin}">{$lang.taskadmin}</span></td>
									</tr>										
									{/if}
									{if $cr eq 'filecheckin'}	
										<tr>
											<td class="img_menu"><img src="images/option.gif" width="24" height="24"></td>
											<td><span class="link" onclick="actMenu('filecheckin')" title="{$lang.filecheckin}">{$lang.filecheckin}</span></td>
										</tr>										
									{/if}
									{if $cr eq 'reguser'}	
										<tr>
											<td class="img_menu"><img src="images/register.gif" width="24" height="24"></td>
											<td><span class="link" onclick="actMenu('reguser')" title="{$lang.reguser}">{$lang.reguser}</span></td>
										</tr>										
									{/if}
								{/if}
							{/foreach}
							<tr>
								<td class="img_menu"><img src="images/option.gif" width="24" height="24"></td>
								<td><span class="link" onclick="actMenu('userpref')" title="{$lang.userpref}">{$lang.userpref}</span></td>
							</tr>										
							<tr>
								<td class="img_menu"><img src="images/option.gif" width="24" height="24"></td>
								<td><span class="link" onclick="actMenu('chpwd')" title="{$lang.chpwd}">{$lang.chpwd}</span></td>
							</tr>
							<tr>
								<td class="img_menu"><img src="images/logout.png" width="24" height="24"></td>
								<td><span class="link" onclick="postMenu('logout')" title="{$lang.logout}">{$lang.logout}</span></td>
							</tr>
					</table>
					</div>
				</td>
				<td class="menu_e menu_window_td"></td>
			</tr>
		</tbody>
	</table>
	<table class="menu_window">
		<tbody>
			<tr>
				<td class="menu_sw menu_window_td"></td>
				<td class="menu_s menu_window_td"></td>
				<td class="menu_se menu_window_td"></td>
			</tr>
		</tbody>
	</table>
	</div>
	</div>
</div>
{/if}
